package com.isale.model.db;

import com.isale.common.model.db.BaseDbEntity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import java.io.Serializable;
import java.util.Date;


/**
 * 数据库表【sys_role】对应的entity对象
 *
 * @author bjs
 * @date 2016-11-22 15:18:06
 */
@Entity
@Table(name = "sys_role")
public class SysRole extends BaseDbEntity implements Serializable {
    //
    @Column(name = "role", nullable = false)
    private java.lang.String role;


    //
    @Column(name = "description", nullable = false)
    private java.lang.String description;


    //
    @Column(name = "resource_ids", nullable = false)
    private java.lang.String resourceIds;


    //
    @Column(name = "available", nullable = false)
    private java.lang.Integer available;

    // ================================================================================================

    /**
     * 获取对象的属性【】
     *
     * @return java.lang.String
     */
    public java.lang.String getRole() {
        return role;
    }

    /**
     * 设置对象的属性【】
     *
     * @param role
     */
    public void setRole(java.lang.String role) {
        this.role = role;
    }

    /**
     * 获取对象的属性【】
     *
     * @return java.lang.String
     */
    public java.lang.String getDescription() {
        return description;
    }

    /**
     * 设置对象的属性【】
     *
     * @param description
     */
    public void setDescription(java.lang.String description) {
        this.description = description;
    }

    /**
     * 获取对象的属性【】
     *
     * @return java.lang.String
     */
    public java.lang.String getResourceIds() {
        return resourceIds;
    }

    /**
     * 设置对象的属性【】
     *
     * @param resourceIds
     */
    public void setResourceIds(java.lang.String resourceIds) {
        this.resourceIds = resourceIds;
    }

    /**
     * 获取对象的属性【】
     *
     * @return java.lang.Integer
     */
    public java.lang.Integer getAvailable() {
        return available;
    }

    /**
     * 设置对象的属性【】
     *
     * @param available
     */
    public void setAvailable(java.lang.Integer available) {
        this.available = available;
    }

    // ================================================================================================

    public String toString() {
        StringBuffer sb = new StringBuffer();
        sb.append("SysRole=====>");
        sb.append("{");
        sb.append("id=>" + this.id).append(", ");
        sb.append("role=>" + this.role).append(", ");
        sb.append("description=>" + this.description).append(", ");
        sb.append("resourceIds=>" + this.resourceIds).append(", ");
        sb.append("available=>" + this.available).append(", ");
        sb.append("}");
        return sb.toString();
    }

}